import {requests} from "@/utils/request";

export const getuserinfo={
    data(){
        return{
            user:{}
        }
    },
    mounted(){
      this.getuser()
    },
    methods:{
        getuser(){
            requests.get('/user/getuser').then(res=>{
                this.user= res.data
            })
        }
    }
}